#ifndef PYHP_LAYER_H
#define PYHP_LAYER_H

/**
 * @file pyhp_layer.h
 */

#include "mod_pyhp.h"
#include <Python.h>

PyObject * pyhp_layer_create_globals ( PyObject * layer);
PyObject * pyhp_layer_init ();

void pyhp_layer_set_internal(PyHPData * pyhp, char const * key, void * what);
void * pyhp_layer_get_internal(PyHPData * pyhp, char const * key);

void pyhp_layer_set_object ( PyHPData * pyhp, const char * key, PyObject * val );
PyObject * pyhp_layer_get_object ( PyHPData * pyhp, const char * key );

char * pyhp_layer_pack_object(PyHPData *pydata, PyObject * o);
PyObject *pyhp_layer_unpack_object(PyHPData *pydata, char * content);


#endif
